<script setup lang="ts">
defineProps({
  modelValue: {
    type: Number,
    default: 10
  }
})

const emit = defineEmits<{
  (e: 'update:modelValue', v: number): void
}>()

const cut = () => {
  emit('update:modelValue', 88)
}
</script>
<template>
  <div style="border: 1px solid #000; padding: 20px">
    我是子组件 - {{ modelValue }}

    <button @click="cut">花钱</button>
  </div>
</template>

<style scoped></style>
